<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>javascript编辑器</title>
<link rel="stylesheet" type="text/css" href="editor.css">
<script type="text/javascript" src="jeditor.js"></script>
<SCRIPT LANGUAGE="JavaScript">

var je = new JEditor('editor1',500,300);
//je.onload = true;
je.setValue('aaaa\'aaa');

</SCRIPT>
</head>
<body>
<form method='post' action="test.php">
<input type="hidden" id="editor1" name="editor1" value='bbbbbbbbbb' />

<br />
<br />
<input type="button" onclick="alert(je.getValue());" value="alert value" />

<br />
<br />

<input type="button" onclick="je.insertText('<a href=\'#\'>fff</a>')" value="insert Text" />


<br />
<br />

<input type="button" onclick="je.display(false)" value="hide editor" />
<input type="button" onclick="je.display(true)" value="show editor" />

<br />
<br />
<INPUT TYPE="submit">
</form>
</body>
</html>